export default {
  changeUserName (state, name) {
    state.userName = name
    try {
      localStorage.userName = name
    } catch (e) {}
  },
  changeUserAvatar (state, avatar) {
    state.userAvatar = avatar
    try {
      localStorage.userAvatar = avatar
    } catch (e) {}
  }
}
